package vg.services.graph_view_manager.realization.graph_view.smart_graph_view;

import vg.interfaces.ll_services.data_base_service.data.graph.Graph;
import vg.services.graph_view_manager.interfaces.graph_view.AGraphView;
import vg.services.graph_view_manager.interfaces.graph_view.IGraphViewFactory;

/**
 * @author Timur Zolotuhin (e-mail: tzolotuhin@gmail.com)
 */
public class SmartGraphViewFactory implements IGraphViewFactory {
    @Override
    public AGraphView createGraphView(AGraphView srcGraphView, Graph srcGraph) {
        return new SmartGraphView(srcGraphView, srcGraph);
    }

    @Override
    public AGraphView createGraphView(Graph srcGraph) {
        return new SmartGraphView(srcGraph);
    }

    @Override
    public AGraphView createGraphView() {
        return createGraphView(new Graph(true));
    }
}
